<?php foreach ($modules as $module) { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>